﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="Ajax_liandong.aspx.cs"
    Inherits="main_test_Ajax_liandong" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <div>
        <table>
            <tr valign="top">
                <td>
                    省(市):
                </td>
                <td>
                    <asp:DropDownList ID="ddlProvince" runat="server">
                    </asp:DropDownList>
                    &nbsp;
                    <ajaxToolkit:CascadingDropDown ID="cddProvince" runat="server" ServicePath="../../BankService.asmx"
                        ServiceMethod="GetProvince" Category="Province" TargetControlID="ddlProvince"
                        PromptText="请选择省市" LoadingText="加载中...">
                    </ajaxToolkit:CascadingDropDown>
                    <asp:DropDownList ID="ddlCity" runat="server">
                    </asp:DropDownList>
                    <ajaxToolkit:CascadingDropDown ID="cddCity" runat="server" TargetControlID="ddlCity"
                        ServicePath="../../BankService.asmx" ServiceMethod="GetCity" Category="City"
                        PromptText="---" LoadingText="加载中..." ParentControlID="ddlProvince">
                    </ajaxToolkit:CascadingDropDown>
                    <asp:DropDownList ID="ddlTown" runat="server">
                    </asp:DropDownList>
                    <ajaxToolkit:CascadingDropDown ID="cddTown" runat="server" TargetControlID="ddlTown"
                        ServicePath="../../BankService.asmx" ServiceMethod="GetTown" Category="Town"
                        PromptText="---" LoadingText="加载中..." ParentControlID="ddlCity">
                    </ajaxToolkit:CascadingDropDown>
                </td>
            </tr>
            <tr valign="top">
                <td>
                    银&nbsp;&nbsp;&nbsp;行:
                </td>
                <td>
                    <asp:DropDownList ID="ddlFirst" runat="server">
                    </asp:DropDownList>
                    &nbsp;
                    <ajaxToolkit:CascadingDropDown ID="cddFirst" runat="server" ServicePath="../../BankService.asmx"
                        ServiceMethod="GetFirst" Category="First" TargetControlID="ddlFirst" PromptText="请选择银行"
                        LoadingText="加载中...">
                    </ajaxToolkit:CascadingDropDown>
                    <asp:DropDownList ID="ddlSecond" runat="server">
                    </asp:DropDownList>
                    <ajaxToolkit:CascadingDropDown ID="cddSecond" runat="server" TargetControlID="ddlSecond"
                        ServicePath="../../BankService.asmx" ServiceMethod="GetSecond" Category="Second"
                        PromptText="---" LoadingText="加载中..." ParentControlID="ddlFirst">
                    </ajaxToolkit:CascadingDropDown>
                    <asp:DropDownList ID="ddlThird" runat="server">
                    </asp:DropDownList>
                    <ajaxToolkit:CascadingDropDown ID="cddThird" runat="server" TargetControlID="ddlThird"
                        ServicePath="../../BankService.asmx" ServiceMethod="GetThird" Category="Town"
                        PromptText="---" LoadingText="加载中..." ParentControlID="ddlSecond">
                    </ajaxToolkit:CascadingDropDown>
                </td>
            </tr>
            <tr valign="top">
                <td>
                    电话状态:
                </td>
                <td>
                    <asp:DropDownList ID="ddlFirstState" runat="server">
                    </asp:DropDownList>
                    &nbsp;
                    <ajaxToolkit:CascadingDropDown ID="cddFirstState" runat="server" ServicePath="../../BankService.asmx"
                        ServiceMethod="GetFirstState" Category="FirstState" TargetControlID="ddlFirstState"
                        PromptText="请选择状态" LoadingText="加载中...">
                    </ajaxToolkit:CascadingDropDown>
                    <asp:DropDownList ID="ddlSecondState" runat="server">
                    </asp:DropDownList>
                    <ajaxToolkit:CascadingDropDown ID="cddSecondState" runat="server" TargetControlID="ddlSecondState"
                        ServicePath="../../BankService.asmx" ServiceMethod="GetSecondState" Category="SecondState"
                        PromptText="---" LoadingText="加载中..." ParentControlID="ddlFirstState">
                    </ajaxToolkit:CascadingDropDown>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
